<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<html>
<head>
    <title>管理员登录</title>、
    <link rel="stylesheet" href="${ctx}/static/layui/css/layui.css">
    <link rel="stylesheet" href="${ctx}/static/style/admin.css" media="all">
    <link rel="stylesheet" href="${ctx}/static/style/login.css" media="all">
</head>
<body>
<div class="layadmin-user-login layadmin-user-display-show" id="LAY-user-login" style="display: none;">
    <div class="layadmin-user-login-main">
        <fieldset class="layui-elem-field layui-field-title" >
            <legend>管理员登录页</legend>
        </fieldset>


        <form action="/admin/loginPage" method="post">

            <div class="layadmin-user-login-box layadmin-user-login-body layui-form">
                <div class="layui-form-item">
                    <%--@declare id="lay-user-login-username"--%>
                    <label class="layadmin-user-login-icon layui-icon layui-icon-username" for="LAY-user-login-username"></label>
                    <input type="text" name="username" id="username" placeholder="请输入用户名" class="layui-input">
                    <div class="layui-form-mid layui-word-aux">${msg }</div>
                </div>

                <div class="layui-form-item">
                    <%--@declare id="lay-user-login-password"--%>
                    <label class="layadmin-user-login-icon layui-icon layui-icon-password" for="LAY-user-login-password"></label>
                    <input type="password" name="password" id="password"  placeholder="请输入密码" class="layui-input">

                    <div class="layui-form-mid layui-word-aux"></div>
                </div>


                <div class="layui-form-item">
                    <button class="layui-btn layui-btn-fluid"  type="submit">登录</button>
                </div>
                <div class="layui-form-item">
                    <button class="layui-btn layui-btn-fluid layui-btn-danger"  type="reset" >重置</button>
                </div>

            </div>
        </form>
    </div>

</div>
<script src="${ctx}/static/layui/jquery-3.2.1.min.js"></script>
<script src="${ctx}/static/layui/layui.js"></script>
<script>

    layui.use('form', function(){
        var form = layui.form; //只有执行了这一步，部分表单元素才会自动修饰成功

        //如果你的 HTML 是动态生成的，自动渲染就会失效
        //因此你需要在相应的地方，执行下述方法来进行渲染
        form.render();
    });

</script>
</body>
</html>
